|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.ueberdosis.mp3info.id3v2.ID3V2Frame
Contains information about one ID3v2 frame.
Field Summary | |
protected boolean |
dataChanged
The information if a Frame has been altered. |
protected int |
deprecatedSince
The information since when a a Frame is illegal To be changed by subclasses. |
protected int |
legalSince
The information since when a Frame is legal To be changed by subclasses. |
Fields inherited from interface de.ueberdosis.mp3info.Defines |
DEFAULT_ENCODING, ID3V2_FOOTER_SIZE, ID3V2_FRAME_HEADER_SIZE, ID3V2_HEADER_SIZE, ID3V2_X_HEADER_SIZE, MP3_FRAME_HEADER_SIZE, SUPPORTED_NUMBER_OF_EXTENDED_FLAG_BYTES, testPositions, VERSION |
Constructor Summary | |
ID3V2Frame(byte[] frameBytes)
decoding constructor |
|
ID3V2Frame(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm)
Copy constructor |
|
ID3V2Frame(java.lang.String id)
|
Method Summary | |
boolean |
canDisplay()
Informs if the frame can create a component to display its contents To be overwritten by subclasses |
boolean |
canEdit()
Informs if the frame can create a component to edit its contents To be overwritten by subclasses |
boolean |
containsData()
Denotes if actual data are in this frame. |
de.ueberdosis.mp3info.gui.Id3JPanel |
createJPanel(boolean edit,
boolean selfupdate)
Creates a JPanel to display or edit the contents of the frame. |
de.ueberdosis.mp3info.gui.Id3Panel |
createPanel(boolean edit,
boolean selfupdate)
Creates a (AWT-)Panel to display or edit the contents of the frame. |
int |
deprecatedSince()
Informs since which version of ID3V2 this Frame has become illegal Only major versions are supported. |
boolean |
equals(java.lang.Object o)
Generic method. |
byte[] |
getData()
creates an byte array containing the data in the Frame. |
boolean |
getDataLengthIndicator()
|
boolean |
getFileAlterPreservation()
|
java.lang.String |
getFrameID()
|
long |
getSize()
|
boolean |
getTagAlterPreservation()
|
boolean |
getUnsynchronisation()
|
boolean |
hasGroupingIdentity()
|
boolean |
isAltered()
Tells if the contained data are altered compared to those in the file. |
boolean |
isCompressed()
|
boolean |
isEncrypted()
|
boolean |
isReadOnly()
|
boolean |
isValid()
WinAmp likes to fill unused spaces with lots of 0's, so we have to test the frame for its validity. |
int |
legalSince()
Informs since which version of ID3V2 this Frame is legal Only major versions are supported (eg. |
byte[] |
toByteArray()
creates a byte array containing the whole Frame |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean dataChanged
protected int legalSince
protected int deprecatedSince
Constructor Detail |
public ID3V2Frame(java.lang.String id)
public ID3V2Frame(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm)
public ID3V2Frame(byte[] frameBytes) throws UndersizedException, NotAnID3V2FrameException
frameBytes
- ID3V2_FRAME_HEADER_SIZE bytes that contain vital information.Method Detail |
public java.lang.String getFrameID()
public long getSize()
public boolean getTagAlterPreservation()
public boolean getFileAlterPreservation()
public boolean isReadOnly()
public boolean isCompressed()
public boolean isEncrypted()
public boolean hasGroupingIdentity()
public boolean getUnsynchronisation()
public boolean getDataLengthIndicator()
public boolean isAltered()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isValid()
public boolean containsData()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public byte[] toByteArray()
public byte[] getData()
public boolean canDisplay()
public boolean canEdit()
public de.ueberdosis.mp3info.gui.Id3JPanel createJPanel(boolean edit, boolean selfupdate)
edit
- switches between display- (false) and edit-mode (true)selfupdate
- switches if the created component takes care of
updating its data or not. Generally this means that the component
carries its own update-button.public de.ueberdosis.mp3info.gui.Id3Panel createPanel(boolean edit, boolean selfupdate)
edit
- switches between display- (false) and edit-mode (true)selfupdate
- switches if the created component takes care of
updating its data or not. Generally this means that the Component
carries its own update-button.public int legalSince()
public int deprecatedSince()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |